package com.fiona.common.exception;

import com.fiona.core.message.enums.RpcResponseCodeEnum;

public class RemotingException extends Exception {
	public RemotingException(RpcResponseCodeEnum rpcResponseCodeEnum, String detail) {
		super(rpcResponseCodeEnum.getMessage() + ":" + detail);
	}

	public RemotingException(String message) {
		super(message);
	}
	public RemotingException(String message, Throwable cause) {
		super(message, cause);
	}

	public RemotingException(RpcResponseCodeEnum rpcResponseCodeEnum) {
		super(rpcResponseCodeEnum.getMessage());
	}
}
